]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionPrefs: Work around xgettext bug
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 1 Feb 2019 19:11:39 +0000 (20:11 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sun, 3 Feb 2019 16:11:09 +0000 (16:11 +0000)
xgettext is thrown off by the combination of backticks and slashes,
which makes template string a fun trap to fall into. Just use
String.format() for now ...

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/383

js/extensionPrefs/main.js

index cb7d9edd678a5271cffa4a758284e16864568e27..bfa820b599851eaf3e7a1ca65cf6ba37f9a67488 100644 (file)
@@ -118,7 +118,7 @@ var Application = class {
         scroll.add(box);
 
         let label = new Gtk.Label({
-            label: `<span size="x-large">${_("Something’s gone wrong")}</span>`,
+            label: '<span size="x-large">%s</span>'.format(_("Something’s gone wrong")),
             use_markup: true
         });
         label.get_style_context().add_class(Gtk.STYLE_CLASS_DIM_LABEL);